class Documents < Merb::Controller
  def create
    id = Digest::SHA1.hexdigest("#{rand}#{DateTime.now}#{rand}")[0..39]
	File.open("public/documents/#{id}", "w"){|f| f << request.raw_post} 
    redirect("/documents/" + id)
  end
end